package com.maserb.monitor.service.jwEducation.impl;

import com.maserb.monitor.entity.JwAttentionEntity;
import com.maserb.monitor.repository.JwAttentionRepository;
import com.maserb.monitor.service.base.impl.JpaSpecificationServiceImpl;
import com.maserb.monitor.service.jwEducation.JwAttentionService;
import com.maserb.monitor.service.jwEducation.JwOrgService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.thymeleaf.util.StringUtils;

import javax.persistence.criteria.*;
import java.util.ArrayList;
import java.util.List;

@Service
public class JwAttentionServiceImpl extends JpaSpecificationServiceImpl<JwAttentionRepository,
        JwAttentionRepository, JwAttentionEntity, String> implements JwAttentionService {


    @Override
    public List<JwAttentionEntity> findByOrgId(String orgId) {
        return repository.findByOrgId(orgId);
    }

    @Override
    public List<JwAttentionEntity> findByUuid(String uuid) {
        return repository.findByUuid(uuid);
    }

    @Override
    public List<JwAttentionEntity> findByUuidAndOrgId(String uuid, String orgId) {
        return this.repository.findByUuidAndOrgId(uuid,orgId);
    }


}
